package com.jy.appmarket.network.resultdata;

import com.jy.app.market.idata.Doc;
import com.jy.app.market.idata.data.OtherLogin;

public class OtherLoginResult extends BaseResultData{
	private OtherLogin mOtherLogin;
	
	public OtherLogin getOtherLogin() {
		return mOtherLogin;
	}
	
	@Override
	public boolean parseResult(String result) {
		System.out.println("Result=" + result);
		Doc doc = Doc.fromJson(result);
		if (doc == null) {
			return false;
		}
		
		setDataType(doc.getDataType());
		setStatus(doc.getStatus());
		setMessage(doc.getMessage());
		
		if (doc.isType(OtherLogin.class)) {
			mOtherLogin = doc.getData();
		}
		return true;
	}

}
